package com.gmall.java.model;

import lombok.Data;

import java.util.List;

@Data
public class CityDTO {

    private Integer id;
    private Integer parentId;
    private String name;

    private List<CityDTO> children;

}
////树
//class TreeNode<T>
//{
//    private T value;
//    private List<TreeNode> children;
//}
//
////二叉树
//class BiTreeNode<T>
//{
//    private T value;
//    private BiTreeNode left;
//    private BiTreeNode right;
//}
//
////单向链表
//class LinkNode<T>{
//    private T value;
//    private LinkNode next;
//}
//
////双向链表
//class BiLinkNode<T>{
//    private T value;
//    private BiLinkNode next;
//    private BiLinkNode previous;
//}
